package hpu.bitenergy.List;

import hpu.bitenergy.util.MongoDBHerlper;
import hpu.bitenergy.util.StringHelper;

import java.util.List;

import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
import com.mongodb.DBObject;

/**
 * 
 * 文献集合list
 *
 */

public class IntelligenceList extends GetList {
	
	@Override
	public List<DBObject> getQueryList(BasicDBObject query) {
		MongoDBHerlper mo = new MongoDBHerlper();
		DBCollection col = mo.GetDB(StringHelper.DBNAME,StringHelper.INTELLIGENCECOL);
		List<DBObject> list=col.find(query).toArray();
		// TODO Auto-generated method stub
		return list;
	}
}
